﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt
{
	// Token: 0x020000A9 RID: 169
	public class TDropUserStmt : TCustomSqlStatement
	{
		// Token: 0x06000548 RID: 1352 RVA: 0x002FCD47 File Offset: 0x002FAF47
		public TDropUserStmt(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstdropuser;
		}

		// Token: 0x06000549 RID: 1353 RVA: 0x002FCD5B File Offset: 0x002FAF5B
		public TObjectName getUserName()
		{
			return this.userName;
		}

		// Token: 0x0600054A RID: 1354 RVA: 0x002FCD64 File Offset: 0x002FAF64
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			TDummy tdummy = (TDummy)this.rootNode;
			if (tdummy.list1 != null)
			{
				this.userNameList = (TObjectNameList)tdummy.list1;
				this.userName = this.userNameList.getObjectName(0);
			}
			else
			{
				this.userName = (TObjectName)tdummy.node1;
			}
			return 0;
		}

		// Token: 0x0600054B RID: 1355 RVA: 0x002FCDCE File Offset: 0x002FAFCE
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x0600054C RID: 1356 RVA: 0x002FCDDE File Offset: 0x002FAFDE
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x0400113E RID: 4414
		private TObjectName userName;

		// Token: 0x0400113F RID: 4415
		private TObjectNameList userNameList;
	}
}
